import request from '@/utils/request'

// 申请直播
export function addLive(data) {
    return request({
        url: `/member/web/lives`,
        method: 'post',
        data: data
    })
}

// 获取我的直播列表
export function listLive(data) {
    return request({
        url: `/member/web/lives/list`,
        method: 'get',
        data: data
    })
}

// 开始直播
export function beginLive(data) {
    return request({
        url: `/member/web/lives/Beginlive`,
        method: 'post',
        data: data
    })
}

// 结束直播
export function endLive(data) {
    return request({
        url: `/member/web/lives/endlive`,
        method: 'post',
        data: data
    })
}

